package com.demo.thread.bbp;

/**
 * @author : YU.TAN
 * @date : 2021/11/5 14:02
 */
public class BreadMain {
    public static void main(String[] args) {
        SyncStack syncStack=new SyncStack();

        Consumer consumer = new Consumer(syncStack);
        Producer producer = new Producer(syncStack);
        new Thread(producer).start();
        new Thread(consumer).start();
    }
}
